export default {
  orderConfirmationPage(data) {
    return {
      name: '订单确认列表',
      url: '/mall/materialConfirm/page',
      method: 'post',
      data,
    }
  },
  orderConfirmationDetail(id,materialName) {
    return {
      name: '订单待确认明细',
      url: `/mall/materialConfirm/getConfirmDetail/${id}/${materialName}`,
      method: 'get',
    }
  },
  getConfirmCount(data){
    return {
      name: '历史订货数据统计',
      url: '/mall/materialConfirm/confirmCount',
      method: 'post',
      data,
    }
  },
  getConfirmDetailPage(data){
    return {
      name: '订单确认明细历史表',
      url: '/mall/materialConfirm/confirmDetailPage',
      method: 'post',
      data,
    }
  },
  saveConfirmNum(data){
    return {
      name: '订单确认数量',
      url: `/mall/materialConfirm/saveConfirmNum/${data.id}`,
      method: 'post',
      data: data.list
    }
  },
}